#include "startitem.h"
#include <QPainter>

StartItem::StartItem(QObject *parent) : QObject(parent)
{
    pix.load("star.png");
}

QRectF StartItem::boundingRect() const
{
    return QRect(-pix. width() / 2, -pix.height() /2,pix.width () ,pix.height());
}

void StartItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
{
    painter->drawPixmap(boundingRect().topLeft(),pix);
}
